package com.globallogic.dmytro_zakharenko.university.person;

import java.util.ArrayList;

public class Teacher extends Person {

	private ArrayList<String> mTeacherLessons;
	
	/**
	 * Constructor
	 * 
	 * @param firstName
	 * @param lastName
	 * @param dateOfBirth
	 * @param placeOfBirth
	 * @param salary
	 */
	public Teacher(String firstname, String lastname, int dateOfBirth, String placeOfBirth, double salary) {
		super(firstname, lastname, dateOfBirth, placeOfBirth, salary);
		this.setSalary(salary);
	}
	
	/**
	 * set salary for the teacher
	 * 
	 * @param salary
	 */
	private void setSalary(double salary) {
		this.mSalary = salary * 2;
	}
	
	/**
	 * set lessons for the teacher
	 * 
	 * @param teacherLessons array of Strings
	 */
	public void setLessons(ArrayList<String> teacherLessons) {
		this.mTeacherLessons = teacherLessons;
	}
	
	/**
	 * get lessons of the teacher
	 * 
	 * @return mTeacherLessons array of Strings
	 */
	public ArrayList<String> getLessons() { 
		return mTeacherLessons;
	}
}
